---
layout: example.html
title: Constrained Extent
shortdesc: Example of a view with a constrained extent.
docs: >
  This map has a view that is constrained in an extent.  This is done using the `extent` view option. Please note that specifying `constrainOnlyCenter: true` would only apply the extent restriction to the view center.
tags: "view, extent, constrain, restrict"
---
<div id="map" class="map"></div>
